home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-03-25 | 4.8 KB | 189 lines | [TEXT/MPS ] |
- sockobj = "{obj}"socket:
-
- # socket library debug levels :
- # 0 none
- # 1 report fatal errors
- # 3 execution tracing, and other "essential" debugging info
- # 5 extremely verbose and customized debugging info
- # 7 add packet tracing
- #
-
- COptions = -d SOCK_DEBUG=0 ∂
- -d SOCK_TCP_DEBUG=0 ∂
- -d SOCK_UDP_DEBUG=0 ∂
- -d SOCK_STDIO_DEBUG=0 ∂
- -d SOCK_UTIL_DEBUG=0 ∂
- -d NETDB_DEBUG=0 ∂
- -d GLUE_DEBUG=0 ∂
- -d TCP_PACKET_TRACE ∂
- -u UDP_PACKET_TRACE ∂
- -i "{MacTCP}cincludes:" ∂
- -i "{UnixIncludes}" ∂
- -sym full -mbg full -s socket
-
- OBJS = "{Libraries}"Interface.o ∂
- "{CLibraries}"Math.o ∂
- "{Libraries}"Runtime.o ∂
- "{CLibraries}"StdCLib.o ∂
- "{CLibraries}"CSANELib.o ∂
- "{UnixLib}"unixlib.c.o ∂
- dprintf.c.o
-
- MAP = -l -lf > map.dat
-
- all ƒ socket.o host testtcpclient
-
- alltests ƒ testnetdb ∂
- testtcpclient ∂
- testtcpserver ∂
- testudpclient ∂
- testglue
- # bug
- # testspin
- # tcpstats
-
- clean ƒ
- delete -i testnetdb testtcpclient testtcpserver testudpclient testglue bug testspin tcpstats
-
- #########################################################################
-
- SOCKET_OBJS = socket.c.o ∂
- socket.udp.c.o ∂
- socket.tcp.c.o ∂
- socket.util.c.o ∂
- socket.stdio.c.o ∂
- netdb.c.o ∂
- herror.c.o ∂
- tcpglue.c.o ∂
- dnr.c.o
-
- socket.o ƒ {SOCKET_OBJS}
- lib {SOCKET_OBJS} -o socket.o
-
- socket.c.o ƒ tcpglue.h socket.internal.h
- socket.udp.c.o ƒ tcpglue.h socket.internal.h
- socket.tcp.c.o ƒ tcpglue.h socket.internal.h
- socket.util.c.o ƒ tcpglue.h socket.internal.h
- socket.stdio.c.o ƒ tcpglue.h socket.internal.h
- netdb.c.o ƒ tcpglue.h socket.internal.h
- tcpglue.c.o ƒ tcpglue.h
-
- #########################################################################
-
- TEST_GLUE_SRCS = testglue.c
-
- TEST_GLUE_OBJS = testglue.c.o tcpglue.c.o {OBJS}
-
- testglue ƒ {TEST_GLUE_OBJS}
- Link -o testglue -t MPST -c 'MPS ' {TEST_GLUE_OBJS}
-
- testglue.c.o ƒ tcpglue.h
-
- #########################################################################
-
- TEST_TCP_CLIENT_OBJS = testtcpclient.c.o socket.o {OBJS}
-
- testtcpclient ƒ {TEST_TCP_CLIENT_OBJS}
- Link -o testtcpclient -t MPST -c 'MPS ' {TEST_TCP_CLIENT_OBJS}
-
- testtcpclient.c.o ƒ tcpglue.h socket.internal.h
-
-
- #########################################################################
-
- TEST_TCP_SERVER_OBJS = testtcpserver.c.o socket.o {OBJS}
-
- testtcpserver ƒ {TEST_TCP_SERVER_OBJS}
- Link -o testtcpserver -t MPST -c 'MPS ' {TEST_TCP_SERVER_OBJS}
-
- testtcpserver.c.o ƒ tcpglue.h socket.internal.h
-
-
- #########################################################################
-
- TEST_UDP_CLIENT_OBJS = testudpclient.c.o socket.o {OBJS}
-
- testudpclient ƒ {TEST_UDP_CLIENT_OBJS}
- Link -o testudpclient -t MPST -c 'MPS ' {TEST_UDP_CLIENT_OBJS}
-
- testudpclient.c.o ƒ tcpglue.h socket.internal.h
-
-
- #########################################################################
-
- TEST_UDP_SERVER_OBJS = testudpserver.c.o socket.o {OBJS}
-
- testudpserver ƒ {TEST_UDP_SERVER_OBJS}
- Link -o testudpserver -t MPST -c 'MPS ' {TEST_UDP_SERVER_OBJS}
-
- testudpserver.c.o ƒ tcpglue.h socket.internal.h
-
-
- #########################################################################
-
- TEST_STDIO_OBJS = teststdio.c.o socket.o {OBJS}
-
- teststdio ƒ {TEST_STDIO_OBJS}
- Link -o teststdio -t MPST -c 'MPS ' {TEST_STDIO_OBJS}
-
- teststdio.c.o ƒ tcpglue.h socket.internal.h
-
- #########################################################################
-
- TEST_SPIN_OBJS = testspin.c.o socket.o {OBJS}
-
- testspin ƒ {TEST_SPIN_OBJS}
- Link -o testspin -t MPST -c 'MPS ' {TEST_SPIN_OBJS}
-
- #########################################################################
-
- STAT_OBJS = tcpstats.c.o socket.o {OBJS}
-
- tcpstats ƒ {STAT_OBJS}
- Link -o tcpstats -t MPST -c 'MPS ' {STAT_OBJS}
-
- tcpstats.c.o ƒ tcpglue.h
-
- #########################################################################
-
- NETDB_OBJS = testnetdb.c.o socket.o {OBJS}
-
- testnetdb ƒ {NETDB_OBJS}
- Link -o testnetdb -t MPST -c 'MPS ' {NETDB_OBJS}
-
- testnetdb.c.o ƒ tcpglue.h
-
- #########################################################################
-
- HOST_OBJS = host.c.o socket.o {OBJS}
-
- host ƒ {HOST_OBJS}
- Link -o host -t MPST -c 'MPS ' {HOST_OBJS}
-
- host.c.o ƒ tcpglue.h
-
- #########################################################################
-
- TEST_OBJS = test.c.o socket.o {OBJS}
-
- test ƒ {TEST_OBJS}
- Link -o test -t MPST -c 'MPS ' {TEST_OBJS}
-
- #########################################################################
-
- BUG_OBJS = bug.c.o ∂
- "{Libraries}"Interface.o ∂
- "{CLibraries}"Math.o ∂
- "{Libraries}"Runtime.o ∂
- "{CLibraries}"StdCLib.o ∂
- "{CLibraries}"CSANELib.o
-
-
- bug ƒ {BUG_OBJS}
- Link -o bug -t MPST -c 'MPS ' {BUG_OBJS}
-
- #########################################################################
-
- .c.o ƒ .c
- c "{depDir}{default}.c" -o "{targDir}{default}.c.o" {COptions}
-